package com.atdel.demo33;


/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo32
 * @Author: Del
 * @CreateTime: 2025-03-30  17:02
 * @Description: 抽象哺乳动物类
 * @Version: 1.0
 */
public abstract class Mammal extends Animal{
    public Mammal(String name) {
        super(name);
    }

    @Override
    public void sleep() {
        System.out.println(getName() + " 正在洞穴里睡觉");
    }
}
